//
//  YXCachingMigrate.swift
//  
//
//  Created by tangbl93 on 2021/2/27.
//

import Foundation

// MARK: YXCachingMigrate
public struct YXCachingMigrate {
    
    var version: Int
    var action: VoidClosure
    
    public init(version: Int, action: @escaping VoidClosure) {
        self.version = version
        self.action = action
    }
}

@_functionBuilder
public struct YXCachingMigrateBuilder<T> {
    public static func buildBlock(_ elements: T...) -> [T] {
        elements
    }
}
